<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <style>
        header a{
            text-decoration: none;
            color: #6c6c6c;
        }
    </style>
</head>
<body>
<div id="app">
<el-container>
    <el-header height="150px">
        <div style="width: 1200px;margin: 0 auto">
            <img src="imgs/logo.png" style="width: 300px" alt="">
            <span>
                <a href="">首页</a><el-divider direction="vertical"></el-divider>
                <a href="">热点咨询</a><el-divider direction="vertical"></el-divider>
                <a href="">商家入驻</a><el-divider direction="vertical"></el-divider>
                <a href="">社会招聘</a><el-divider direction="vertical"></el-divider>
                <a href="">校园招聘</a><el-divider direction="vertical"></el-divider>
                <a href="">帮助</a>
            </span>
        </div>

        <div style="width: 100%;height: 60px;background-color: #82c8ec">
            <el-menu style="width: 1200px;margin: 0 auto" mode="horizontal"
                     :default-active="1" class="el-menu-demo"
                     background-color="#82c8ec"
                     text-color="#fff"
                     active-text-color="#fff"
                     @select="handleSelect">
                <el-menu-item index="1">首页</el-menu-item>
                <el-menu-item index="2">免费课</el-menu-item>
                <el-menu-item index="3">直播课</el-menu-item>
                <el-menu-item index="4">精品课</el-menu-item>
                <el-menu-item index="5">线上班</el-menu-item>

            </el-menu>
        </div>
    </el-header>
    <el-main>Main</el-main>
    <el-footer>Footer</el-footer>
</el-container>
</div>
</body>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script>
    let v=new Vue({
        el: '#app',
        data: function() {
            return {}
        },
        methods:{
            handleSelect(index,indexPath){
                console.log(index)
            }
        }
    })


</script>
</html>


